<?php
/**
 * Yii view form
 *
 * @author <KTD SOFT>
 * @since Jan 11, 2013 - 2:46:02 PM
 */
?>

<div class = "row-fluid">
    <?php
    $this->model->coupon_end_time = $this->model->coupon_end_time ? date('d-m-Y', $this->model->coupon_end_time) : NULL;
    $this->model->created_at      = date('d-m-Y', $this->model->created_at);
    $this->model->coupon_value    = $this->model->coupon_value ? $this->model->coupon_value . '%' : NULL;
    $this->beginWidget('MyActiveForm', array(
        'model'       => $this->model,
        'title'       => $this->pageTitle,
        'htmlOptions' => array('class' => 'span12'),
        'columns'     => array(
            array(
                'field'       => 'name',
                'htmlOptions' => array('class'    => "span10 txt",
                    'readonly' => "readonly"),
            ),
            array(
                'field'       => 'email',
                'htmlOptions' => array('class'    => "span10 txt",
                    'readonly' => "readonly"),
            ),
            array(
                'field'       => 'phone_number',
                'htmlOptions' => array('class'    => "span10 txt",
                    'readonly' => "readonly"),
            ),
            array(
                'field'       => 'created_at',
                'htmlOptions' => array('class'    => "span10 txt",
                    'readonly' => "readonly"),
            ),
            array(
                'field'       => 'coupon_code',
                'htmlOptions' => array('class'    => "span10 txt",
                    'readonly' => "readonly"),
            ),
            array(
                'field'       => 'coupon_value',
                'htmlOptions' => array('class'    => "span10 txt",
                    'readonly' => "readonly"),
            ),
            array(
                'field'       => 'coupon_end_time',
                'htmlOptions' => array('class'    => "span10 txt",
                    'readonly' => "readonly"),
            ),
            array(
                'field'       => 'status',
                'type'        => 'dropDownList',
                'data'        => Register::getArrayStatus(),
                'htmlOptions' => array('class' => ""),
            ),
        ),
    ));
    ?>

</div>
<?php $this->endWidget() ?>

